package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.persistence.Page;
import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebFreeWaybillDao;
import com.yuhanginfo.modules.web.entity.WebFreeWaybill;

/**
 * 包邮设置Service
 * @author yangs
 * @version 2017-10-09
 */
@Service
@Transactional(readOnly = true)
public class WebFreeWaybillService extends WebCrudService<WebFreeWaybillDao, WebFreeWaybill> {
    @Autowired
    private WebFreeWaybillDao webFreeWaybillDao;
	public WebFreeWaybill get(String id) {
		return super.get(id);
	}
	
	public List<WebFreeWaybill> findList(WebFreeWaybill freeWaybill) {
		return super.findList(freeWaybill);
	}
	
	public Page<WebFreeWaybill> findPage(Page<WebFreeWaybill> page, WebFreeWaybill freeWaybill) {
		return super.findPage(page, freeWaybill);
	}
	
	@Transactional(readOnly = false)
	public void save(WebFreeWaybill freeWaybill) {
		super.save(freeWaybill);
	}
	
	@Transactional(readOnly = false)
	public void delete(WebFreeWaybill freeWaybill) {
		super.delete(freeWaybill);
	}

	public WebFreeWaybill getWebFreeWaybillByArea(WebFreeWaybill freeWaybill){
		return webFreeWaybillDao.getWebFreeWaybillByArea(freeWaybill);
	}
}